package com.md.lession7;

import java.util.Scanner;

public class Demo9 {
		public static void main(String[] args) {
			Scanner scanner=new Scanner(System.in);
			int a =scanner.nextInt();
			for (int i = 0; i <=a; i++) {
				if (i/i==0&&i/1==0) {
					System.out.println("123");
				}
				else {
					System.out.println("456");
				}
			}

		}

	}